This page last changed on May 05, 2006 by leicester.

1. Get the Dataset

  • download from here here
  • That site has excellent documentation and summary of VMAP0 files
  • There is also a bit torrent download here
  • You can get an "improved" data dictionary here
  • Most of VMAP0 is free to redistribute, but some of it (the political boundaries layer) is for non-commercial use (see the readme.txt).

2. Make sure your decompressor isnt mangling things (see the mapability (above) site for how to configure winzip). Unix users should be okay.

3. decompress and use ogr2ogr to process. I've attached 2 script files that do all the processing for you. They're windows .bat files, but they are simple and can be easily converted to unix, or use the attached shell script.

4. load the files into Postgis

foreach i (*.shp)
echo $i
echo shp2pgsql -D -s 4326 -I $i $i:r
shp2pgsql -D -s 4326 -I $i $i:r | psql vmap0 > $i.out
end

vacuum analyse;

5. load my derived data
I fixed the polical boundary layers (there were topology problems). I've attached a .zip file with the countries and the sub-national boundaries.

World Polygon

The country-level world dataset contains:
gen_full - (full resolution) 1,912,574 points
gen1 - (reduced resolution) 675,536 points
gen1 - (reduced resolution) 290,013 points
gen1 - (reduced resolution) 59,765 points


main.bat (application/octet-stream)
ogr_process.bat (application/octet-stream)
vmap2shp.pl (application/octet-stream)
doit.sh (application/octet-stream)

Hi, I am trying to crete a linux version of the .bat files. All goes well except that i get the following error when ogr2ogr is used for the first time:

ogr2ogr one.shp "gltp:/vrf/e:v0noa/vmaplv0/noamer" "landicea@phys_area" -nln "landicea" "landicea@phys_area"
FAILURE:
Unable to open datasource `gltp:/vrf/e:v0noa/vmaplv0/noamer' with the following drivers.
-> ESRI Shapefile
-> UK .NTF
-> SDTS
-> TIGER
-> S57
-> MapInfo File
-> DGN
-> VRT
-> AVCBin
-> REC
-> Memory
-> CSV
-> GML
-> OGDI
-> PostgreSQL

Are the values correct? If I look into the v0noa/vmaplv0/noamer directory I see not much files but a lot of directories. Is that ok

Cheers,
Bastiaan

Posted by bw at Oct 04, 2005 10:59

The problem was that you need to give the absolute path which I didn't

Cheers, Bastiaan

Posted by bw at Oct 05, 2005 13:40

Bastian, any chance you could attach your linux files to this page? Others might be interested in them.

Posted by cholmes at Nov 20, 2005 07:05

I can't find the attached .zip file with the fixed polical boundary layers. Can somebody help me?

Posted by chrissi at Jan 10, 2007 04:32

"I've attached 2 script files that do all the processing for you"

Where are those files ?

Thanks,

Dmitry. 

Posted by [email protected] at Oct 11, 2007 16:40
Document generated by Confluence on Jan 16, 2008 23:28